<template>
  <div class="container">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="a" @click="more">通知</span>
          <el-button class="b" text>更多</el-button>
        </div>
      </template>
      <div v-for="o in 4" :key="o" class="c">{{ 'List item ' + o }}</div>
    </el-card>
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="a" @click="more">新批阅作业</span>
          <el-button class="b" text>更多</el-button>
        </div>
      </template>
      <div v-for="o in 4" :key="o" class="c">{{ 'List item ' + o }}</div>
    </el-card>
  </div>
</template>

<script>
export default {
  setup() {},
  methods: {
    more() {
      console.log("niho");
    }
  }
};
</script>

<style scoped>
.container {
  height: 100%;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  justify-content: space-around;
  align-items: flex-start;
}

.box-card {
  height: 40%;
  width: 40%;
  margin: 20px;
}

.card-header {
  height: 10%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.a {
  width: 100%;
  width: 150px;
  font-size: 1.5em;
}

.b {
  width: 100%;
  width: 100px;
  font-size: 1.2em;
  color: grey;
}

.c {
  height: auto;
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
}
</style>